﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using iMapa.UI.ModelView.Editor;

namespace iMapa.UI.View.Common
{
    /// <summary>
    /// Interaction logic for InteractPoint.xaml
    /// </summary>
    public partial class InteractPoint : UserControl
    {
        public InteractPoint()
        {
            InitializeComponent();
        }


        public InteractPoint(InteractObjectViewModel model)
        {
            InitializeComponent();
            this.DataContext = model;
        }

        private void pointP_MouseEnter(object sender, MouseEventArgs e)
        {
            InteractObjectViewModel model = (InteractObjectViewModel)this.DataContext;
            if (model != null)
            {
                model.Parent.SelectedIObj = model;
            }
            
        }

        

    }
}
